import sys

class Solution(object):
    def containsDuplicate(self, nums):
        """
        :type nums: List[int]
        :rtype: bool
        """
        nums.sort()
        lastNum = sys.maxsize
        for num in nums:
            if num==lastNum:
                return True
            lastNum=num
        return False